Optimal. Leaf size=138 \[ -\frac{2 (b c-a d)^2 \sqrt{d e-c f} \tanh ^{-1}\left (\frac{\sqrt{d} \sqrt{e+f x}}{\sqrt{d e-c f}}\right )}{d^{7/2}}+\frac{2 \sqrt{e+f x} (b c-a d)^2}{d^3}-\frac{2 b (e+f x)^{3/2} (-2 a d f+b c f+b d e)}{3 d^2 f^2}+\frac{2 b^2 (e+f x)^{5/2}}{5 d f^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.253491, antiderivative size = 138, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167 \[ -\frac{2 (b c-a d)^2 \sqrt{d e-c f} \tanh ^{-1}\left (\frac{\sqrt{d} \sqrt{e+f x}}{\sqrt{d e-c f}}\right )}{d^{7/2}}+\frac{2 \sqrt{e+f x} (b c-a d)^2}{d^3}-\frac{2 b (e+f x)^{3/2} (-2 a d f+b c f+b d e)}{3 d^2 f^2}+\frac{2 b^2 (e+f x)^{5/2}}{5 d f^2} \]
Antiderivative was successfully verified.
[In] Int[((a + b*x)^2*Sqrt[e + f*x])/(c + d*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 36.9727, size = 129, normalized size = 0.93 \[ \frac{2 b^{2} \left (e + f x\right )^{\frac{5}{2}}}{5 d f^{2}} + \frac{2 b \left (e + f x\right )^{\frac{3}{2}} \left (2 a d f - b c f - b d e\right )}{3 d^{2} f^{2}} + \frac{2 \sqrt{e + f x} \left (a d - b c\right )^{2}}{d^{3}} - \frac{2 \left (a d - b c\right )^{2} \sqrt{c f - d e} \operatorname{atan}{\left (\frac{\sqrt{d} \sqrt{e + f x}}{\sqrt{c f - d e}} \right )}}{d^{\frac{7}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**2*(f*x+e)**(1/2)/(d*x+c),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.203872, size = 152, normalized size = 1.1 \[ \frac{2 \sqrt{e+f x} \left (15 a^2 d^2 f^2+10 a b d f (d (e+f x)-3 c f)+b^2 \left (15 c^2 f^2-5 c d f (e+f x)+d^2 \left (-2 e^2+e f x+3 f^2 x^2\right )\right )\right )}{15 d^3 f^2}-\frac{2 (b c-a d)^2 \sqrt{d e-c f} \tanh ^{-1}\left (\frac{\sqrt{d} \sqrt{e+f x}}{\sqrt{d e-c f}}\right )}{d^{7/2}} \]
Antiderivative was successfully verified.
[In] Integrate[((a + b*x)^2*Sqrt[e + f*x])/(c + d*x),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.017, size = 387, normalized size = 2.8 \[{\frac{2\,{b}^{2}}{5\,d{f}^{2}} \left ( fx+e \right ) ^{{\frac{5}{2}}}}+{\frac{4\,ab}{3\,df} \left ( fx+e \right ) ^{{\frac{3}{2}}}}-{\frac{2\,{b}^{2}c}{3\,f{d}^{2}} \left ( fx+e \right ) ^{{\frac{3}{2}}}}-{\frac{2\,{b}^{2}e}{3\,d{f}^{2}} \left ( fx+e \right ) ^{{\frac{3}{2}}}}+2\,{\frac{{a}^{2}\sqrt{fx+e}}{d}}-4\,{\frac{abc\sqrt{fx+e}}{{d}^{2}}}+2\,{\frac{{b}^{2}{c}^{2}\sqrt{fx+e}}{{d}^{3}}}-2\,{\frac{{a}^{2}fc}{d\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) }+2\,{\frac{{a}^{2}e}{\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) }+4\,{\frac{bfa{c}^{2}}{{d}^{2}\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) }-4\,{\frac{abce}{d\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) }-2\,{\frac{{b}^{2}{c}^{3}f}{{d}^{3}\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) }+2\,{\frac{{b}^{2}{c}^{2}e}{{d}^{2}\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^2*(f*x+e)^(1/2)/(d*x+c),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2*sqrt(f*x + e)/(d*x + c),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.224154, size = 1, normalized size = 0.01 \[ \left [\frac{15 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} f^{2} \sqrt{\frac{d e - c f}{d}} \log \left (\frac{d f x + 2 \, d e - c f - 2 \, \sqrt{f x + e} d \sqrt{\frac{d e - c f}{d}}}{d x + c}\right ) + 2 \,{\left (3 \, b^{2} d^{2} f^{2} x^{2} - 2 \, b^{2} d^{2} e^{2} - 5 \,{\left (b^{2} c d - 2 \, a b d^{2}\right )} e f + 15 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} f^{2} +{\left (b^{2} d^{2} e f - 5 \,{\left (b^{2} c d - 2 \, a b d^{2}\right )} f^{2}\right )} x\right )} \sqrt{f x + e}}{15 \, d^{3} f^{2}}, -\frac{2 \,{\left (15 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} f^{2} \sqrt{-\frac{d e - c f}{d}} \arctan \left (\frac{\sqrt{f x + e}}{\sqrt{-\frac{d e - c f}{d}}}\right ) -{\left (3 \, b^{2} d^{2} f^{2} x^{2} - 2 \, b^{2} d^{2} e^{2} - 5 \,{\left (b^{2} c d - 2 \, a b d^{2}\right )} e f + 15 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} f^{2} +{\left (b^{2} d^{2} e f - 5 \,{\left (b^{2} c d - 2 \, a b d^{2}\right )} f^{2}\right )} x\right )} \sqrt{f x + e}\right )}}{15 \, d^{3} f^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2*sqrt(f*x + e)/(d*x + c),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 13.9607, size = 274, normalized size = 1.99 \[ \frac{2 \left (\frac{b^{2} \left (e + f x\right )^{\frac{5}{2}}}{5 d f} + \frac{\left (e + f x\right )^{\frac{3}{2}} \left (2 a b d f - b^{2} c f - b^{2} d e\right )}{3 d^{2} f} - \frac{f \left (a d - b c\right )^{2} \left (c f - d e\right ) \left (\begin{cases} \frac{\operatorname{atan}{\left (\frac{\sqrt{e + f x}}{\sqrt{\frac{c f - d e}{d}}} \right )}}{d \sqrt{\frac{c f - d e}{d}}} & \text{for}\: \frac{c f - d e}{d} > 0 \\- \frac{\operatorname{acoth}{\left (\frac{\sqrt{e + f x}}{\sqrt{\frac{- c f + d e}{d}}} \right )}}{d \sqrt{\frac{- c f + d e}{d}}} & \text{for}\: e + f x > \frac{- c f + d e}{d} \wedge \frac{c f - d e}{d} < 0 \\- \frac{\operatorname{atanh}{\left (\frac{\sqrt{e + f x}}{\sqrt{\frac{- c f + d e}{d}}} \right )}}{d \sqrt{\frac{- c f + d e}{d}}} & \text{for}\: \frac{c f - d e}{d} < 0 \wedge e + f x < \frac{- c f + d e}{d} \end{cases}\right )}{d^{3}} + \frac{\sqrt{e + f x} \left (a^{2} d^{2} f - 2 a b c d f + b^{2} c^{2} f\right )}{d^{3}}\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**2*(f*x+e)**(1/2)/(d*x+c),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.217278, size = 338, normalized size = 2.45 \[ -\frac{2 \,{\left (b^{2} c^{3} f - 2 \, a b c^{2} d f + a^{2} c d^{2} f - b^{2} c^{2} d e + 2 \, a b c d^{2} e - a^{2} d^{3} e\right )} \arctan \left (\frac{\sqrt{f x + e} d}{\sqrt{c d f - d^{2} e}}\right )}{\sqrt{c d f - d^{2} e} d^{3}} + \frac{2 \,{\left (3 \,{\left (f x + e\right )}^{\frac{5}{2}} b^{2} d^{4} f^{8} - 5 \,{\left (f x + e\right )}^{\frac{3}{2}} b^{2} c d^{3} f^{9} + 10 \,{\left (f x + e\right )}^{\frac{3}{2}} a b d^{4} f^{9} + 15 \, \sqrt{f x + e} b^{2} c^{2} d^{2} f^{10} - 30 \, \sqrt{f x + e} a b c d^{3} f^{10} + 15 \, \sqrt{f x + e} a^{2} d^{4} f^{10} - 5 \,{\left (f x + e\right )}^{\frac{3}{2}} b^{2} d^{4} f^{8} e\right )}}{15 \, d^{5} f^{10}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2*sqrt(f*x + e)/(d*x + c),x, algorithm="giac")
[Out]